<%--
  Created by IntelliJ IDEA.
  User: humeng
  Date: 2022/10/19
  Time: 10:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>check</title>
</head>
<body>
<%
    response.setCharacterEncoding("utf-8");

    String username = request.getParameter("username");
    String password = request.getParameter("password");
    if ("admin".equals(username)&&"1234".equals(password)){
        response.sendRedirect("waite.jsp");
    }else {
        response.sendRedirect("login.jsp");
    }
%>

</body>
</html>
